package psn.kiko.service;

import lombok.RequiredArgsConstructor;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import psn.kiko.pojo.R;

/**
 * 2024/11/26 21:10
 */
@Service
@RequiredArgsConstructor
public class SqlService{
	private final JdbcTemplate jdbcTemplate;
	
	public R<?> executeSql(String sql){
		jdbcTemplate.execute(sql);
		return R.okWithMsg("SQL脚本执行成功");
	}
}
